/**
 * 
 */
package game.kill.service;

import java.util.List;

import game.kill.model.RoomUser;

/**
 * @author leiruiqi
 *
 */
public interface RoomUserService {

	List<RoomUser> queryRoomUserByRoomId(Long roomId);
	
	void createPlayer(RoomUser roomUser);
	
	void removePlayerById(Long id);
	
	RoomUser getByRoomAndUser(Long roomId,Long userId);
	
	RoomUser getLastRoomUserByUserId(Long userId);
	
	RoomUser getLastRoomUserByUserIdAndStatus(Long userId,Integer status);
	
	boolean updatePlayerById(RoomUser roomUser);
	
}
